package com.competition.web.admin.controller;

import java.util.List;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.competition.web.admin.service.ILogContentService;
import com.response.vo.ResponseModel;
import com.competition.web.entity.LogContent;
import com.param.impl.IdParam;

/**
 * 证书列表
 * @author 111
 */
@RestController
@RequestMapping("/admin/logContent")
public class LogContentController {

	private ILogContentService logService;


	public LogContentController(ILogContentService logService) {

		this.logService = logService;
	}

	@PostMapping("/getLogContent")
	public ResponseModel<List<LogContent>> getLogContent(@RequestBody @Validated IdParam param) {
		
		return ResponseModel.<List<LogContent>>success(this.logService.getLogContent(param.getId()));
		
	}
}
